package com.unicorn;

import com.unicorn.base.PlatformListenner;
import com.unicorn.base.VinaceConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import java.io.File;

@SpringBootApplication
@ComponentScan
@EnableAutoConfiguration
public class NetVinaceApplication {


	public static void main(String[] args) {

		SpringApplication netVinaceApp=new SpringApplication(NetVinaceApplication.class);
		netVinaceApp.addListeners(new PlatformListenner());
		netVinaceApp.run(args);
		//SpringApplication.run(NetVinaceApplication.class,args).addApplicationListener(new PlatformListenner());



	}



}
